package com.lxw.report.meta.query.queryer;


import com.lxw.report.meta.entity.DataBase;

/**
 * @author lxw
 */
public class MySqlQueryer extends AbstractQueryer implements Queryer {
    public MySqlQueryer(DataBase dataBase) {
        super(dataBase);
    }
    @Override
    protected String preprocessSqlText(String sqlText) {
//        sqlText = StringUtils.stripEnd(sqlText.trim(), ";");
//         Pattern pattern = Pattern.compile("limit.*?$", Pattern.CASE_INSENSITIVE);
//         Matcher matcher = pattern.matcher(sqlText);
//        if (matcher.find()) {
//            sqlText = matcher.replaceFirst("");
//        }
//        return sqlText + " limit 1";

        return sqlText;
    }
}
